-- GENERATED SPELL FOR [Mechano-Flamewalker] --


function spell0_6226(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(11970,pUnit)
pUnit:RegisterEvent('Sorts_6226', 2000, 1)
end

function spell1_6226(pUnit, Event) --@Flame Spray,n/a--
pUnit:FullCastSpellOnTarget(10733,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6226', 1700, 1)
end

function Sorts_6226(pUnit, Event)
local choix_sorts_6226 = math.random(0, 1)
if choix_sorts_6226 == 0 then
pUnit:RegisterEvent('spell0_6226', 1, 1)
end
if choix_sorts_6226 == 1 then
pUnit:RegisterEvent('spell1_6226', 1, 1)
end
end

function mob6226_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6226', math.random(1500, 3000), 1)
end

function mob6226_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6226_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6226_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6226, 1, 'mob6226_Action')
RegisterUnitEvent(6226, 2, 'mob6226_Leave')
RegisterUnitEvent(6226, 3, 'mob6226_Kill')
RegisterUnitEvent(6226, 4, 'mob6226_Die')
